package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.ibatis.type.Alias;

/**
 * 消息通知业务对象 app_message_notice
 *
 * @author ruoyi
 * @date 2025-09-29
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Alias("SysMessageNoticeBo")
public class AppMessageNoticeBo extends BaseEntity {

    /**
     * ID
     */
    @NotBlank(message = "ID不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 接收人ID
     */
//    @NotBlank(message = "接收人ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String receiverId;

    /**
     * 消息标题
     */
    @NotBlank(message = "消息标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 消息内容
     */
    @NotBlank(message = "消息内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 是否已读 0=未读 1=已读
     */
//    @NotNull(message = "是否已读 0=未读 1=已读不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isRead;

    /**
     * 备注
     */
//    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
